<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
    <link rel="stylesheet" href="/css/font.css">

    <link rel="stylesheet" href="/css/xadmin.css">
    <link rel="stylesheet" type="text/css" href="/css/black.css" />
</head>
<style>
    a {
        text-decoration: none;
        font-size: 15px;
        font-family: 微软雅黑;
    }
    .login-1{
        background-size: 100% 100%;
        width: 950px;
    }
    .login-2{
        width: 230px;
        height: 190px;
        margin-left: 165px;
        margin-top: 10px;
        background-color: transparent;
    }

    button {
        width: 270px;
        height: 40px;
        font-size: 18px;
        font-weight: bolder;
        background-color: #00B4F4;
        border: 2px solid white;
        border-radius: 10px;
        font-family: 楷体;
        color: white;
    }

    .center {
        width: 550px;
        height: 450px;
        margin: 20px auto;
        display: flex;
        flex-direction: column;
    }

    .user1 {
        margin-top: -30px;
        margin-left: 130px;
    }

    .user3 {
        margin-top: 20px;
        margin-left: 140px;
    }

    .leftBottom {
        font-size: 15px;
        color: white;
        font-family: 微软雅黑;
    }

    .foot {
        height: 40px;
        background-color: rgba(19, 19, 19, 0.73);
    }

    .foot-1 {
        width: 400px;
        height: 20px;
        margin-left: 600px;
    }

    .input {
        width: 270px;
        height: 30px;
        margin-top: 20px;
        margin-left: 10px;
        border: 0px;
        border-bottom: 1px solid black;
        background-color: transparent;
    }
    .input:focus{
        outline: none;
    }

    .input::placeholder {
        font-family: 楷体;
    }

    .input-y {
        width: 160px;
        height: 30px;
        margin-top: 30px;
        margin-left: 15px;
        border: 0px;
        border-bottom: 1px solid black;
        background-color: transparent;
    }
    .input-y:focus{
        outline: none;
    }

    .input-y::placeholder {
        font-family: 楷体;
    }

    .code {
        width: 50px;
        height: 20px;
        margin-top: -35px;
    }

    .valid {
        width: 100px;
        height: 40px;
        margin-left: 190px;
    }

    .span {
        margin-left: 150px;
        margin-top: 20px;
        font-family: 微软雅黑;
        font-size: 15px;
        color: red;
    }
    .title{
        font-size: 45px;
        font-family: 幼圆;
        font-weight: bolder;
        margin-top: -1px;
        margin-left: 195px;
    }
    .login-right{
        display: flex;
        flex-direction: column;
        background: linear-gradient(to right,  lightskyblue, aliceblue, #009ce3);
    }

    input:focus {
    /*设置阴影效果*/
    box-shadow: 0 px 0 px 12 px 0 px rgba(98, 19, 254, 0.6);
    /*设置border效果*/
    border: 2 px solid #5813fe;
</style>
<body>

<div style="display: flex; flex-direction: column; margin-left: 7px; margin-top: 7px;">
    <div style="display: flex; flex-direction: row; height: 705px">
        <div class="login-1">
            <img src="../images/loginBackground.jpg" width="100%" height="100%">
        </div>
        <div class="login-right">
            <div style="width: 560px; height: 200px">
                <div class="login-2">
                    <img src="../images/login-2.png" width="100%" height="100%">
                </div>
            </div>
            <div style="height: 60px; margin-top: 20px;">
                <p class="title">疫 时 达</p>
            </div>
            <div style="height: 480px;">
                <div class="center">
                    <div style="margin: 20px auto">
                        <p style="font-family: 微软雅黑; font-size: 25px; font-weight: bolder">登录平台</p>
                    </div>
                    <form method="post" th:action="@{/ourProject/login}">
                        <div class="user1">
                            <!--                <p></p>账 号：-->
                            <i style="margin-left: -10px;" class="icon iconfont">&#xe6b8;</i>
                            <input class="input" type="text" name="username" placeholder="账号/手机号/邮箱"><br>

                            <!--                密 码：-->
                            <i style="margin-left: -10px;" id="tubiao" class="icon iconfont">&#xe82b;</i>
                            <input class="input" type="password" name="password" placeholder="密码"><br>

                            <!-- 验证码 -->
                            <input class="input-y" type="text" name="validCode" placeholder="请输入验证码">
                            <div class="code">
                                <img id="validImage" class="valid" th:src="@{/valid/valid}" th:onclick="refreshImage()">
                            </div>
                        </div>
                        <div style="margin-top: 20px">
                            <span class="span" th:text="${msg}"></span>
                        </div>
                        <div class="user3">
                            <button type="submit">进入平台</button>
                        </div>
                    </form>
                </div>
                <div style="display: flex; flex-direction: row; margin-top: -130px">
                    <div style="margin-left: 140px;">
                        <p class="jz">
                            <a style="font-family: 楷体; font-size: 14px" th:href="@{/ourProject/register}">注册账号</a>
                        </p>
                    </div>

                    <div style="margin-left: 90px;">
                        <p style="font-family: 微软雅黑; font-size: 15px">忘记密码?
                            <a style="font-family: 楷体; font-size: 14px" th:href="@{/ourProject/forget(username=${username})}">立即找回</a>
                        </p>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <div class="foot">
        <div class="foot-1">
<!--            <p id="time" class="leftBottom">2022年10月20日</p>-->
            <p class="leftBottom">
                <script>
                    document.write(Date());
                </script>
            </p>

        </div>
    </div>
</div>
</body>
</html>
<script>
    function refreshImage() {
        document.getElementById("validImage").src = "../valid/valid?" + new Date().getTime();
    }

    // #time : document.write(Date.now());

</script>